from django.db import models

# Create your models here.

from django.db import models

# Create your models here.

class Article(models.Model):
    title = models.CharField(max_length=100)
    content = models.TextField()
    myfile = models.ImageField(upload_to="%Y/%m/%d/")
    def __str__(self):
        return self.title

class News(models.Model):
    title=models.CharField(max_length=100)
    content=models.CharField(max_length=100)
    def __str__(self):
        return self.title